package com.zmzncs.common.common.pojo.daoer;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created with SXD.
 * Description:
 * User: 36119
 * Date: 2020-12-24
 * Time: 16:39
 */
@Data
public class CarPortRes implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "响应头")
    private Head head;

    @ApiModelProperty(value = "响应体")
    private List<Body> body;

    @Data
    public static class Head {
        @ApiModelProperty(value = "返回状态，1：成功；0：失败")
        private Integer status;
        @ApiModelProperty(value = "返回成功/失败消息")
        private String message;
    }

    @Data
    public static class Body {

        private String parkingId;	//	车场ID
        private String parkName;	//	车场名称
        private Total total;	//	总车位
        private Idle idle;	//	剩余空车位

        @Data
        public static class Total {

            private Integer total;	//	总车位
            private Integer fixed;	//	vip车位 (混合车位时,舍弃该值)
            private Integer temporary;	//	临时车位 (混合车位时,舍弃该值)

        }

        @Data
        public static class Idle {

            private Integer total;	//	总车位
            private Integer fixed;	//	vip车位 (混合车位时,舍弃该值)
            private Integer temporary;	//	临时车位 (混合车位时,舍弃该值)

        }

    }

}
